import type { App } from 'vue'
import * as piniaGather from 'pinia';
import piniaPersist from 'pinia-plugin-persist-uni'

const _pinia = createPinia()
_pinia.use(piniaPersist)

export * from './modules/appStore'
export * from './modules/myStore'

export const pinia = piniaGather
export const installStores = (app: App) => app.use(_pinia)